package com.kantboot.business.talent.service.impl;

import com.kantboot.business.talent.domain.entity.BusTalentSkillLevel;
import com.kantboot.business.talent.domain.vo.BusTalentSkillLevelHasCondition;
import com.kantboot.business.talent.repository.BusTalentSkillLevelHasConditionRepository;
import com.kantboot.business.talent.repository.BusTalentSkillLevelRepository;
import com.kantboot.business.talent.service.IBusTalentSkillLevelService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusTalentSkillLevelServiceImpl implements IBusTalentSkillLevelService {

    @Resource
    private BusTalentSkillLevelRepository repository;

    @Resource
    private BusTalentSkillLevelHasConditionRepository hasConditionRepository;

    @Override
    public List<BusTalentSkillLevel> getAll() {
        return repository.findAll();
    }

    @Override
    public List<BusTalentSkillLevelHasCondition> getAllHasCondition() {
        return hasConditionRepository.findAll();
    }
}
